#导包
import time
from appium import webdriver

#准备测试数据：appium url
url = "http://127.0.0.1:4723/wd/hub"

#准备测试数据
d = {
    "platformName":"Android", #平台名
    "deviceName":"BAL-AL80", #设备名
    "appPackage":"com.android.settings", #包名
    "appActivity":".Settings"
}

#连接手机,创建驱动
driver = webdriver.Remote(url, d)
time.sleep(10)

#关闭驱动
driver.quit()


